package com.sumkids.cloud.eurekaclient;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author songyang@hzchuangbo.com
 * @version v1.0.0
 * @description
 * @since 2019/9/2 17:50
 */
@FeignClient(name = "spring-cloud-producer", fallback = HelloRemoteHystrix.class)
public interface HelloRemote {

    @RequestMapping(value = "hello")
    String hello(@RequestParam(value = "name") String name);
}
